<template>
	<view class="empty-content">
		<view class="empty-content-image" :style="{backgroundImage:'url('+photo_cdn1+'zpupload/20230908/30e20e06a83391a1ae.png)'}"  mode="aspectFit"></view>
		
		<view class="empty_name">{{tis}}</view>
	</view>
</template>

<script>
	import config from "@/utils/config.js";
	let {staticurl,photo_cdn1} = config.baseUrl;
	export default {
		props: {
			src: {
				type: String,
				default: 'empty'
			},
			tis:{
				type: String,
				default: '空空如也'
			}
		},

		data() {
			return {
				photo_cdn1,
				// typeSrc: {
				// 	empty: '/static/zupu/empty.png'
				// },
			}
		},

		computed: {
			// setSrc() {
			// 	return this.typeSrc[this.src];
			// },
		}
	}
</script>

<style lang="scss">
	.empty-content {
		display: flex;
		align-items: center;
		justify-content: center;
		flex-direction: column;
		
		// position: fixed;
		// left: 0;
		// top: 0;
		// right: 0;
		// bottom: 0;
		// background: #ffffff;
		padding-top: 120upx;
		padding-bottom: 120upx;

		&-image {
			width: 400upx;
			height: 300upx;
			background-size: 100% 100%;
		}
		.empty_name{
			color: #9e9e9e;
			font-size: 30upx;
			text-align: center;
			margin-top: 30upx;
		}
	}
</style>
